import Mock, { MockjsRequestOptions } from 'mockjs'
import { printReq } from './common'
const Random = Mock.Random
export const getData = (req: MockjsRequestOptions) => {
  const res = {
    code: 200,
    message: '请求成功',
    data: {
      name: Random.cname(),
      id: Random.id(),
      county: Random.county(true)
    }
  }
  return printReq(res, req)
}